{extend name="public:base"/}

{block name="title"}查看<?=$config['tableCnName']?>{/block}
{block name="style"}{/block}

{block name="main"}

<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header m-b-sm">
                    <h3 class="box-title">查看<?=$config['tableCnName']?><?php echo '<?=$model[\''.$config['pri_key'].'\']?>' ?></h3>
                </div>
                <!--
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="/backend/addons/rf-merchants/config/index"> 配置管理</a></li>
                        <li><a href="/backend/addons/rf-merchants/config-cate/index"> 配置分类</a></li>
                        <li class="pull-right">
                            <a class="btn btn-primary btn-xs" href="/backend/addons/rf-wechat/rule/edit"><i
                                    class="fa fa-plus"></i> 创建</a>
                        </li>
                    </ul>
                </div>
                -->

                <div class="clearfix"></div>

                <div class="box-body table-responsive">

                    <table id="table-index" class="table table-hover"><thead>
                    <tr>
                        <th style="width: 20%;">字段名称</th>
                        <th style="width: 20%;">字段数据</th>
                    </tr>

                    </thead>
                        <tbody>

                        <?php if(!empty($config['view'])){foreach($config['view'] as $k=>$v){?>
                        <tr>
                            <td><?=$v['comment']?></td>

                            <td>
                                <span class="m-l-sm"><?php echo '<?=$model[\''.$v['field'].'\']?>' ?></span>
                            </td>
                        </tr>
                        <?php }} ?>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
</section>
{/block}

{block name="js"}
{/block}


